<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Creative - Bootstrap 3 Responsive Admin Template">
    <meta name="author" content="GeeksLabs">
    <meta name="keyword" content="Creative, Dashboard, Admin, Template, Theme, Bootstrap, Responsive, Retina, Minimal">
    <link rel="shortcut icon" href="{{url_for('static', filename='img/favicon.png')}}">

    <title>登录平台</title>

    <link href="{{url_for('static', filename='css/bootstrap.min.css')}}" rel="stylesheet">
    <!-- bootstrap theme -->
    <link href="{{url_for('static', filename='css/bootstrap-theme.css')}}" rel="stylesheet">

    <link href="{{url_for('static', filename='css/elegant-icons-style.css')}}" rel="stylesheet"/>
    <link href="{{url_for('static', filename='css/font-awesome.css')}}" rel="stylesheet"/>

    <link href="{{url_for('static', filename='css/style.css')}}" rel="stylesheet">
    <link href="{{url_for('static', filename='css/style-responsive.css')}}" rel="stylesheet"/>

</head>

<body class="login-img-body">
<div class="container">
    <form class="login-form" method="POST">
        {{ form.hidden_tag() }}
        <div class="login-wrap">
            <p class="login-img"><i class="icon_lock_alt"></i></p>
                {% for message in get_flashed_messages() %}
                    <div class="alert alert-danger text-center col-md-12  col-sm-12 " >
                        {{ message }}
                    </div>
                 {% endfor %}
            <div class="input-group">
                <span class="input-group-addon"><i class="icon_profile"></i>&nbsp;&nbsp;账号</span>
                <!--<input type="text" class="form-control" placeholder="用户名" autofocus>-->
                {{form.usernum(class="form-control", size=20, id='usernum')}}
                {%for e in form.usernum.errors%}
                <span style="color: red">*{{e}}</span>
                {%endfor%}
            </div>
            <div class="input-group">
                <span class="input-group-addon"><i class="icon_key_alt"></i>&nbsp;&nbsp;密码</span>
                <!--<input type="password" class="form-control" placeholder="密码">-->
                {{form.password(class="form-control", size=20, id='password')}}
                {%for e in form.password.errors%}
                <span style="color: red">*{{e}}</span>
                {%endfor%}
            </div>
            <button class="btn btn-primary btn-lg btn-block" type="submit" id="submit">登录</button>
        </div>

    </form>

</div>


</body>
</html>
